package com.frxuexi.mine.viewmodel

import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import com.frxuexi.lib_base.room.UseRepository

class UserViewModelFactory(private val useRepository: UseRepository):ViewModelProvider.NewInstanceFactory() {
    override fun <T : ViewModel> create(modelClass: Class<T>): T {
        return UserViewModel(useRepository) as T
    }
}